package com.hxut.model;

import com.hxut.model.Goods;

import java.util.ArrayList;

public class PageBean {
    private int totalCount; // 数据的总条数
    private int currentPage; //当前显示的页码
    private int totalPage; //总页数
    private int currentCount; //每页展示的数据条数
    private ArrayList<Goods> goodsList;//每一列显示的数据

    public PageBean() {
    }

    public PageBean(int totalCount, int currentPage, int totalPage, int currentCount, ArrayList<Goods> goodsList) {
        this.totalCount = totalCount;
        this.currentPage = currentPage;
        this.totalPage = totalPage;
        this.currentCount = currentCount;
        this.goodsList = goodsList;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCurrentCount() {
        return currentCount;
    }

    public void setCurrentCount(int currentCount) {
        this.currentCount = currentCount;
    }

    public ArrayList<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(ArrayList<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "totalCount=" + totalCount +
                ", currentPage=" + currentPage +
                ", totalPage=" + totalPage +
                ", currentCount=" + currentCount +
                ", goodsList=" + goodsList +
                '}';
    }
}
